package swu.edu.cn.javaee.entity;


import org.apache.ibatis.type.Alias;

@Alias("user")
public class User {
    private String uid;
    private String phone;
    private String password;
    private String permission;
    private String avatar;//头像图片地址
    private String nickname;//昵称

    public User(){
        this.uid="";
        this.phone="";
        this.password="";
        this.permission="";
        this.avatar="";
        this.nickname="";
    }
    public String getAvatar() {
        return avatar;
    }

    public String getNickname() {
        return nickname;
    }

    public String getPassword() {
        return password;
    }

    public String getPermission() {
        return permission;
    }

    public String getPhone() {
        return phone;
    }

    public String getUid() {
        return uid;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", phone='" + phone + '\'' +
                ", password='" + password + '\'' +
                ", permission='" + permission + '\'' +
                ", avatar='" + avatar + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
